.class public Lcom/waiqin365/lightapp/im/a/a/c;
.super Lcom/waiqin365/lightapp/im/a/c;


# direct methods
.method public constructor <init>()V
    .locals 3

    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/im/a/c;-><init>(I)V

    const-string/jumbo v0, "https://a1.easemob.com/waiqin365/waiqin365/token"

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/a/a/c;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/a/c;->e:Ljava/util/HashMap;

    const-string/jumbo v1, "Type"

    const-string/jumbo v2, "application/json"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string/jumbo v0, "grant_type"

    const-string/jumbo v2, "client_credentials"

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v0, "client_id"

    const-string/jumbo v2, "YXA6TOJGcE7MEeSX6BtG-jHDoQ"

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v0, "client_secret"

    const-string/jumbo v2, "YXA6ePWEh-75qBCqqoVXjugonnuT_68"

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/a/a/c;->d:Ljava/util/HashMap;

    const-string/jumbo v2, "cmdStr"

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
